package day02;

import java.util.concurrent.Callable;
import java.util.concurrent.TimeUnit;

public class PrintTask implements Callable<Integer> {
    @Override
    public Integer call() throws Exception {
        int sum = 0;
        for (int i = 0; i <= 2; i++) {
            sum += i;
            TimeUnit.SECONDS.sleep(3);
            System.out.println("i = " + i);
        }
        return sum;
    }

}
